package com.goldman.aplt.service.seq;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.goldman.aplt.entity.seq.MspSequence;
import com.goldman.aplt.repo.seq.MspSequenceMapper;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zw
 * @since 2023-09-20
 */
@CacheConfig(cacheNames = "${systemId}:MspSequenceService")
@Service
public class MspSequenceService extends ServiceImpl<MspSequenceMapper, MspSequence> {

    @Cacheable
    public MspSequence selOneById(String seqCode) {
        return lambdaQuery().eq(MspSequence::getSeqCode, seqCode).one();
    }
}
